package com.wsoft.hr.pm.controller;

import com.wsoft.hr.pm.query.template.his.HisInfoQuery;
import com.wsoft.hr.pm.service.IHrPmTemplateTargetHisService;
import com.wsoft.response.ResponseResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 指标库 前端控制器
 * @author Z001
 * @since 2025年02月24日 18:26:47
 */
@RestController
@Tag(name = "模版指标历史")
@RequestMapping("/hr/pm/template/targetHis")
public class HrPmTemplateTargetHisController {

    @Resource
    private IHrPmTemplateTargetHisService templateTargetHisService;


    @Operation(summary = "模版指标-详情", description = "模版指标-详情")
    @PostMapping("/get")
    public ResponseResult get(@RequestBody  HisInfoQuery query) {
        return ResponseResult.success(templateTargetHisService.getHisInfo(query));
    }

}
